package cn.softwin.service;

import cn.softwin.domain.PageBean;
import cn.softwin.pojo.CstCustomer;
import cn.softwin.pojo.CstCustomerDetail;

public interface CustumerService {

    /**
     * 添加客户信息
     * @param cstCustomer
     * @return
     */
    public boolean addCustumerMessage(CstCustomer cstCustomer);

    /**
     * 添加客户详细信息
     * @param cstCustomerDetail
     * @return
     */
    public boolean addCustumerDetailMessage(CstCustomerDetail cstCustomerDetail);


    /**
     * Description: 实现分页查询功能
     * Author: zhangxiangkai
     * Params: [currentString, rowString]
     * ReturnType: cn.softwin.domain.PageBean<cn.softwin.pojo.CstCustomer>
     * Time: 2021/2/18-10:25
     */
    public PageBean<CstCustomer> selectByPage(int currentString, int rowString);

    /**
     * Description: 根据id删除对应的客户信息
     * Author: zhangxiangkai
     * Params: [custId]
     * ReturnType: boolean
     * Time: 2021/2/18-17:25
     */
    boolean DeleteCustomerById(Long custId);

    CstCustomerDetail queryCustomerDetailsById(Long custId);

    CstCustomer queryCustomerById(Long custId);

    Boolean updateCustomerById(CstCustomer cstCustomer);

    Boolean updateCustomerDetailById(CstCustomerDetail cstCustomerDetail);
}
